package com.maxlen.common.constant;

public class ProductConstant {

    public enum CategoryLevel {
        LEVEL_ONE(1, "一级级分类"),
        LEVEL_TWO(2, "二级分类"),
        LEVEL_THERE(3, "三级分类"),
        LEVEL_LBT_COUNT(10, "前十个");

        private int code;
        private String msg;

        CategoryLevel(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum AttrEnum {
        ATTR_TYPE_BASE(1, "base"),
        ATTR_TYPE_SALE(0, "sale");

        private int code;
        private String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum StatusEnum {
        NEW_SPU(0, "新建"),
        SPU_UP(1, "商品上架"),
        SPU_DOWN(2, "商品下架");

        private int code;
        private String msg;

        StatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum ShowStatus {
        SHOW_OK(1, "展示"),
        SHOW_NO(0, "不展示");

        private int code;
        private String msg;

        ShowStatus(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
